# SPDX-FileCopyrightText:2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

tags:
  - table
summary: 查询数据表(裸sql)
description: 查询数据表(裸sql)
operationId: "{{ uniqueOpId() }}"  
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          id: 
            type: string
            description: mongo连接ID
          token:
            type: string
            description: 访问令牌
          db:
            type: string
            description: 数据库名
          sql:
            type: string
            description: 裸sql
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: object
          properties:
            columns:
              type: array
              items:
                $ref: "@schemas/column.yml.njk"
            values:
              type: array
              items:
                type: array
                items:
                  type: string  
  "500":
    description:  失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk" 